package cn.stu.framework.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * 角色菜单
 *
 * @author 郑志豪
 * @date 2023/09/19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class RoleMenu implements Serializable {

    /**
     * 串行版本用户界面
     */
    private static final long serialVersionUID = 1L;

    /**
     * RM ID
     */
    @TableId(value = "rm_id", type = IdType.AUTO)
    private Long rmId;

    /**
     * 角色标识
     */
    private Long roleId;

    /**
     * 菜单编号
     */
    private Long menuId;

    /**
     * 角色名称
     */
    private String roleName;


    /**
     * 角色菜单
     *
     * @param roleId   角色标识
     * @param menuId   菜单编号
     * @param roleName 角色名称
     */
    public RoleMenu(Long roleId, Long menuId, String roleName) {
        this.roleId = roleId;
        this.menuId = menuId;
        this.roleName = roleName;
    }
}
